package org.baicaixiaozhan.emailmanager.dao;


import org.apache.ibatis.annotations.Param;
import org.baicaixiaozhan.emailmanager.auth.ApplicationUser;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * DESC:
 *
 * @author : baicaixiaozhan
 * @since : 2021-06-20
 */
@Repository
public interface ApplicationUserDao {

    /**
     * 根据 username 查询 applicationUser
     *
     * @param username 用戶名
     * @return {@link ApplicationUser}
     */
    Optional<ApplicationUser> findApplicationUserByUsername(@Param("username") String username);
}
